/*
 * =====================================================================================
 *
 *       Filename:  CommFunc.h
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  09/19/2019 11:11:04 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  liushuyong (), shuyong1999@163.com
 *        Company:  shuyong
 *
 * =====================================================================================
 */
#ifndef  __COMM_FUNC_H__
#define __COMM_FUNC_H__
#include <boost/archive/iterators/base64_from_binary.hpp>
#include <boost/archive/iterators/binary_from_base64.hpp>
#include <boost/archive/iterators/transform_width.hpp>

#include "CommHead.h"

std::wstring S2WS(const std::string& str);
std::string md5(const std::string& src);

std::string get_ip();
const char* find_base_address(const char* name);
bool base64_encode(const std::string& input, std::string* output);
bool base64_decode(const std::string& input, std::string* output);
struct timeval getTime();
const char* find_base_address(const char* name);

#endif
